﻿<!DOCTYPE html>
<!--HTML5 doctype-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>查看订单 - {site.name}</title>
<meta name="keywords" content="{site.seo_keyword}" />
<meta name="description" content="{site.seo_description}" />
<link rel="stylesheet" type="text/css" href="<%templateskin%>/css/style.css" />
<script type="text/javascript" charset="utf-8" src="<%templateskin%>/js/zepto.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<%templateskin%>/js/weui.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<%templateskin%>/js/common.js"></script>
</head>

<body ontouchstart>
<div class="page">
    <!--页面头部-->
    <div class="header">
        <a class="back" href="javascript:history.back();">
            <i class="iconfont icon-arrow-left"></i>
        </a>
        <h3>我的订单</h3>
        <div class="right"> 
            <a class="weui-cell_access weui-cell_link" href="<%linkurl("usercenter","index")%>">
                <i class="iconfont icon-user"></i>
            </a>
        </div>
    </div>
    <!--/页面头部-->
    
    <div class="page__bd">
        
        <!--收货信息-->
        <div class="weui-form-preview form-preview" style="margin-top:10px;">
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">收货人</label>
                    <span class="weui-form-preview__value">{model.accept_name}</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">收货地址</label>
                    <span class="weui-form-preview__value">{model.area} {model.address} {model.post_code}</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">联系电话</label>
                    <span class="weui-form-preview__value">{model.mobile} {model.telphone}</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">电子邮箱</label>
                    <span class="weui-form-preview__value">{model.email}</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">开具发票</label>
                    <span class="weui-form-preview__value">
                        <%if({model.is_invoice}==1)%>
                            是
                        <%else%>
                            否
                        <%/if%>
                    </span>
                </div>
                <%if({model.is_invoice}==1)%>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">发票抬头</label>
                    <span class="weui-form-preview__value">{model.invoice_title}</span>
                </div>
                <%/if%>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">备注留言</label>
                    <span class="weui-form-preview__value">{model.message}</span>
                </div>
            </div>
        </div>
        <!--收货信息-->
        
        <!--订单概述-->
        <div class="weui-form-preview form-preview">
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">支付方式</label>
                    <span class="weui-form-preview__value"><%=get_payment_title(model.payment_id)%></span>
                </div>
                <%if(model.payment_status==2)%>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">付款时间</label>
                    <span class="weui-form-preview__value">{model.payment_time}</span>
                </div>
                <%/if%>
                <%if(model.express_status==2)%>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">发货单号</label>
                    <span class="weui-form-preview__value"><%=get_express_title(model.express_id)%> {model.express_no}</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">物流信息</label>
                    <span class="weui-form-preview__value">{expressdetail}</span>
                </div>
                <%/if%>
            </div>
        </div>
        <!--订单概述-->
        
        <!--订单信息-->
        <div class="weui-form-preview form-preview">
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">商品金额</label>
                    <span class="weui-form-preview__value">¥{model.real_amount}元</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">税费</label>
                    <span class="weui-form-preview__value">¥{model.invoice_taxes}元</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">运费</label>
                    <span class="weui-form-preview__value">¥{model.express_fee}元</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">支付手续费</label>
                    <span class="weui-form-preview__value">¥{model.payment_fee}元</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">总积分</label>
                    <span class="weui-form-preview__value">{model.point}分</span>
                </div>
            </div>
        </div>
        <!--订单信息-->
        
        <!--商品列表-->
        <div class="detail-list">
            <ul>
                <li>
                    <div class="detail-hd">
                        <span class="fr"><%=get_order_status(model.id)%></span>
                        <span>{model.order_no}</span>
                    </div>
                    <div class="detail-bd">
                        <%if(model.order_goods!=null)%>
                        <%foreach(DTcms.Model.order_goods modelt in model.order_goods)%>
                        <div class="list-box">
                            <div class="img-box">
                                <a href="<%linkurl("goods_show",{modelt.article_id})%>"><img src="<%=get_article_img_url(modelt.channel_id, modelt.article_id)%>" /></a>
                            </div>
                            <div class="txt-box">
                                <h2>{modelt.goods_title}</h2>
                                <p>{modelt.spec_text}</p>
                                <p class="note">
                                    <span class="fr">×{modelt.quantity}</span>
                                    <span class="price">￥{modelt.real_price}</span>
                                </p>
                            </div>
                        </div>
                        <%/foreach%>
                        <%/if%>
                    </div>
                    <div class="detail-ft">
                        <p class="fr">订单总金额：¥{model.order_amount}元</p>
                        <p>{model.add_time}</p>
                        <div class="ft-btn">
                            <div class="btn-box">
                                <%if(get_order_payment_status(model.id))%>
                                <a href="<%linkurl("payment","?action=confirm&order_no="+model.order_no)%>">去付款</a>
                                <%/if%>
                                <%if({model.status}<2)%>
                                <a href="javascript:;" onclick="clickSubmit('{config.webpath}tools/submit_ajax.ashx?action=order_cancel&order_no={model.order_no}');">取消订单</a>
                                <%/if%>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <!--/商品列表-->
        
    </div>
    
    <!--版权信息-->
    <%template src="_copyright.html"%>
    <!--/版权信息-->

    <!--底部导航-->
    <%template src="_footer.html"%>
    <!--/底部导航-->
</div>
</body>
</html>
